@extends('layout.admin.master')
@section('content')
        <div class="card">
            <div class="card-body">
                <ul class="nav nav-tabs nav-tabs-sm">
                    <li class="nav-item">
                        <a href="{{route('permission.module.index')}}" class="nav-link active">
                            模块列表
                        </a>
                    </li>
                </ul>
                    <table class="table">
                        <thead>
                        <tr>
                            <th>编号</th>
                            <th>模块中文名称</th>
                            <th>模块英文名称</th>
                            <th>操作</th>
                        </tr>
                        </thead>
                        <tbody>
                        @foreach($modules as $module)
                        <tr>
                            <td scope="row">{{$module->id}}</td>
                            <td>{{$module->cname}}</td>
                            <td>{{$module->name}}</td>
                            <td> <a href="{{route('permission.module.show',$module)}}" class="btn btn-info btn-sm">查看</a></td>
                        </tr>
                        @endforeach
                        </tbody>
                    </table>

            </div>
        </div>
    </form>
@endsection
